<%@ page import="com.zpark.pojo.Supermarket" %>
<%@ page import="java.text.SimpleDateFormat" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="UTF-8" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<center>
    <table>
        <tr>
            <td>名称：</td>
            <td>${sup.name}</td>
        </tr>
        <tr>
            <td>日期：</td>
            <%
                Supermarket sup = (Supermarket) request.getAttribute("sup");
                SimpleDateFormat format = new SimpleDateFormat("yyyy年MM月dd日");
            %>
            <td><%= format.format(sup.getDate())%></td>
        </tr>
        <tr>
            <td>收入：</td>
            <td>${sup.money}</td>
        </tr>
    </table>
</center>
</body>
</html>
